import Vue from 'vue'
import VueRouter from 'vue-router'
import main from '../components/main.vue'
// import head from '../components/header.vue'
import Student from '../views/student.vue'
import Score from '../views/score.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: main,
    children: [
      { path: 'myclass', component:()=> import('../views/hnkj-class.vue') },
      {path: 'student', component: Student},
      {path: 'score', component: Score}
    ]
  },
  {
    path: '/exit',
    component: () => import("../components/exit.vue")
  }
]

const router = new VueRouter({
  linkExactActiveClass: 'router-link-exact-active',
  linkActiveClass: 'router-link-active"',
  routes
})

export default router
